package com.wyh.book.model;

import lombok.Data;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 王圆豪
 * Date: 2025-07-12
 * Time: 21:41
 */
@Data
public class PageInfo {
    private Integer offset;
    private Integer pageSize = 10;
    private Integer countPage = 1;

    public Integer getOffset() {
        return (countPage -1) * pageSize;
    }
}
